Adding db to routes