added models, controllers and database