update for postgres support