setup pg in app