Got the dbToModel() stuff working - we can now pass between the model and the database