Hooking up database to routes.