database changed to pg