added routes and methods to query the db for what we need