Use QSqlTableModel instead of QSqlQueryModel