updating db to postgres