0.8dev: Utilize database API for handling exceptions.

This resolves issues reported by Saint Germain when `python-pysqlite2` is installed in the environment.


git-svn-id: https://svn.apache.org/repos/asf/bloodhound/trunk@1560582 13f79535-47bb-0310-9956-ffa450edef68