added database models and migrations