working routes and postgres setup