Adds an attr_accessor on the Database module to make @pg available in implementing classes.