final pg db