changed pg connection