Trying to access the database from the controller.