Connects routes get request route to database