changed to pg database