making pg available

I needed to make pg available in order to handle connection errors
Merge pull request #1 from HERRKIN/patch-1

making pg available