updating to postgres