Query DB Reference Removal

Removed references to DB "cah" in queries. Possible version syntax
issue.

Also
- added back in local error trapping.
- added error trapping and performance improvements to slideshow
(renderCycleByCat).