adding support for postgresql