Doing the database model and the controllers