Implement some of the methods using QtSql
Create the database and its tables if needed
Add assert to check the number of tables