adding a bunch of routes to get various data out of a postgres database