added controllers, model and migrations