Add the database model
Add the first pieces of logic to utils