HttpKeyPouch.destroy = function (name, opts, callback) {
   window.PouchDB(name, opts).then(function (db) {
      return db.destroy();
  }).then(function () {
    callback();
  }, callback);
}