code: func (mc MongoClient) AddIntervalAction(action contract.IntervalAction) (string, error) {
  	s := mc.getSessionCopy()
  	defer s.Close()
  
  	var mapped models.IntervalAction
  	id, err := mapped.FromContract(action)
  	if err != nil {
  		return "", err
  	}
  
  	// See if the name is unique and add the value descriptors
  	found, err := s.DB(mc.database.Name).C(db.IntervalAction).Find(bson.M{"name": mapped.Name}).Count()
  	// Duplicate name
  	if found > 0 {
  		return "", db.ErrNotUnique
  	}
  
  	mapped.TimestampForAdd()
  
  	if err = s.DB(mc.database.Name).C(db.IntervalAction).Insert(mapped); err != nil {
  		return "", errorMap(err)
  	}
  	return id, nil
  }
docs: // Add a new Interval Action
  // UnexpectedError - failed to add interval action into the database