update database for pg