updates for postgres