added models and database migrations