Rewrite gamelibrarymodel to make somewhat better use of QSqlTableModel