Bug fixes to Perl/Consumers.pm
Numerous tweaks to SQL procedures for improved speed and coonsistency of data access, to Perl API to accommodate those tweaks, and improvements to consumer functions