Fix compatibility with QMYSQL driver after 74aed95
Summary:
QPSQL requires the table name passed to QSqlDatabase::record() to be lowercase
since Qt 5.13, but doing that breaks QMYSQL, so only adjust the name when
using QPSQL.
CCBUG: 409234
Reviewers: KDE PIM, vkrause
Reviewed By: KDE PIM, vkrause
Subscribers: kde-pim
Tags: KDE PIM
Differential Revision: https://phabricator.kde.org/D22677