docs: function init(config) {
      var deferred = Q.defer();
  
      connect(config.mongo.url, config.mongo.debug, config.mongo.mongos)
          .then(function () {
  
              IdxInfoModel = getModel({
                  name: 'idx',
                  fields: {
                      str: { type: String, index: { unique: true } },
                      name: String,
                      count: Number
                  }
              });
  
              deferred.resolve(config);
          })
          .catch(function (err) {
              deferred.reject(err);
          });
  
      return deferred.promise;
  }