added password support for pg