Remove imports of QtSql.
Add additional logging.