1. moved common functions from PG::Local and PG::Remote to PG and made them methods so that inheritence would work.
Changed paths: