/** @return the database used that contains the smart store */
 public SmartStore getSmartStore() {
   String passcodeHash = getPasscodeHash();
   SQLiteDatabase db =
       DBOpenHelper.getOpenHelper(this)
           .getWritableDatabase(passcodeHash == null ? "" : passcodeHash);
   return new SmartStore(db);
 }
 public static void deleteDatabase(Context ctx) {
   Log.i("DBOpenHelper:deleteDatabase", DB_NAME + "/" + DB_VERSION);
   if (openHelper != null) {
     openHelper.close();
     openHelper = null;
   }
   ctx.deleteDatabase(DB_NAME);
 }