[#33474] Use Exceptions for catching DB errors

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33474&start=0