implement postgres connection
refactor to nested controllers
modify blueprint response payload