code: function () {
                  var that = this;
                  var done = new rsvp.Promise();
                  // Shortcut if we have been here before
                  if(that._collection !== null) {
                      done.resolve(that._collection);
                      return done;
                  }
                  // Open DB
                  that._logger.debug('STORE', '%s: Connecting to database - %s', that.id(), that._dbName);
                  that._db = new mongo.Db(that._dbName, new mongo.Server(that._host, that._port, {
                      poolSize: 1
                  }), {
                      w: 1
                  });
                  that._db.open(function (err, db) {
                      if(err) {
                          that.fail(done, '%s: Unable to open db: %s : %s', that.id(), that._dbName, err.message);
                      } else {
                          // Open Collection
                          that._logger.debug('STORE', '%s: Opening collection - %s', that.id(), that._collectionName);
                          that._db.createCollection(that._collectionName, function (err, collection) {
                              if(err) {
                                  that.fail(done, '%s: Unable to open collection: %s : %s', that.id(), that._collectionName, err.message);
                              } else {
                                  that._collection = collection;
                                  // Init collection
                                  var curP = that.ensureExists(lockUID, {
                                      locked: false
                                  }, null);
                                  curP = that.wait(curP, function () {
                                      return that.ensureExists(store.rootUID, {
                                          _rev: 0,
                                          _ref: 1,
                                          _type: 'Object',
                                          _data: {
                                          }
                                      }, collection);
                                  });
                                  curP.then(function () {
                                      done.resolve();
                                  }, function (err) {
                                      done.resolve(err);
                                  });
                              }
                          });
                      }
                  });
                  return done;
              }
docs: /* ----------------------------- MONGO CODE -----------------------------------