added support for PostgreSQL