added support for PGSQL.