Cleaner require of pg module

Thanks @cvan