postgres integration working