code: func (mc MongoClient) IntervalActionByName(name string) (contract.IntervalAction, error) {
  	s := mc.getSessionCopy()
  	defer s.Close()
  
  	query := bson.M{"name": name}
  
  	mia := models.IntervalAction{}
  	if err := s.DB(mc.database.Name).C(db.IntervalAction).Find(query).One(&mia); err != nil {
  		return contract.IntervalAction{}, errorMap(err)
  	}
  	return mia.ToContract(), nil
  }
docs: // Return an Interval Action by name
  // UnexpectedError - failed to retrieve interval actions from the database
  // Sort the interval actions in descending order by ID