Create db tables

Add migration files and models and a test on model