First commit of models and database helpers