Linked the DB and the controller