controllers and database