docs: function writeData (database, key, value) {
    var deferred = q.defer();
  
    // We need to verify that the database is open and ready
    openDatabase(database).then(function () {
      // Set the key/value pair
      databases[database][key] = value;
  
      // Ask for a write
      requestWrite(database).then(function () {
        deferred.resolve();
      }, function (err) {
        deferred.reject(err);
      });
    }, function (err) {
      deferred.reject(err);
    });
  
    return deferred.promise;
  }