revert the usage of QSQLDatabase