add ssl support for postgresql