updated to pg db