first class app using postgresql