Make all database operation falisafe (try...finally)
Fixed - task 391: [bug] to support all sqlite implementations we need to
go back to a sigleton db management class 
https://github.com/asksven/BetterBatteryStats/issues/issue/391