added controllers to handle db calls