Use pgModule in require of ConnectionParmaters

The 1.7.0 branch doesn't correctly handle the pgModule option because of how it requires the postgres ConnectionParameters. Looks like it has been fixed in development branch, so this change just mirrors the logic there.