code: func addCommands(dp *models.DeviceProfile, w http.ResponseWriter) error {
  	for i := range dp.CoreCommands {
  		if newId, err := dbClient.AddCommand(dp.CoreCommands[i]); err != nil {
  			http.Error(w, err.Error(), http.StatusServiceUnavailable)
  			return err
  		} else {
  			dp.CoreCommands[i].Id = newId
  		}
  	}
  
  	return nil
  }
docs: // Add all of the commands that are a part of the device profile