update according to postgres changes