Made a new route for querying the db