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/