changes for postgres to be happy