added controllers and db