update pg db