pg db fix