Passing of the db to each individual route