Add DB connection to the view and the controller.