Added a DatabaseController. All database query and statements are to go through the controller.