Implemented all controllers with database connection