added support for postgresSQL