Encapsulated all database logic in BMInterface in try/catch blocks

Fixes #963 (I believe).

Chaos, let me know if this is what you were expecting.

http://jenkins.buttonweavers.com:8080/job/buttonmen-blackshadowshade/422/
Ditto here (in db_insert_die) --- i think this function was originally written what i would think of as the right way, and your refactor took everything except the actual database operation out of the try block.

I owe you an apology for my original ticket being unclear.  :>(