docs: function openDatabase (name) {
    var deferred = q.defer();
  
    // Make sure the file directory exists
    ready.then(function () {
      // Make note of an action on the database to avoid closing early
      actionOn(name);
  
      // If database exists in memory already, we're good to go
      if(databases[name]) return deferred.resolve();
  
      // If database isn't in memory, make sure it exists
      createDatabase(name).then(function () {
        // Read database
        fs.readFile(globalConfig.db.location + name + '.db.json', function (err, data) {
          if(err) return deferred.reject(err);
  
          // Hold database in memory
          databases[name] = JSON.parse(data);
  
          deferred.resolve();
        });
      }, function (err) {
        deferred.reject(err);
      });
    }, function () {
      deferred.reject('Database couldn\'t instantiate');
    });
  
    return deferred.promise;
  }