hooks up db/model to routes