function getModel(name, schema) {
    if (!modelCache[name]) {
      setModel(name, schema);
    }

    return modelCache[name];
  }
Gets a mongoose model. Creates one if it
doesn't exist already.

@param name name of the model to retrieve
@param schema schema for the model

@returns a mongoose model