code: function (json, callback) {
          //validate input
          if (!inputValidation(json)) {
              var inputError = new SearchError('invalid input');
              callback(undefined, inputError);
              return;
          }
          //mongodb api here, then handle the response from mongodb
          database.getSentimentForNameTimeframe(json.character, json.startDate, json.endDate, function (json, err) {
              if (err) {
                  callback(undefined, err);
              } else {
                  callback(json);
              }
          });
      }
docs: /*
  returns Analysis over a timeframe (same as above)
  Input json:
  {
  "character" : "Some Name",
  "startDate" : ISODate",
  "endDate" : 'ISODate"
  }