update DB to pg