sample app with postgresql db