Fixed bug with pgsql introduced in previous commit.