fixing pg db