worked on db dependencies in controller