updating for postgres