more changes for postgres