code: func PutTask(tx *bolt.Tx, task *api.Task) error {
  	return withCreateTaskBucketIfNotExists(tx, task.ID, func(bkt *bolt.Bucket) error {
  		taskCopy := *task
  		taskCopy.Status = api.TaskStatus{} // blank out the status.
  
  		p, err := proto.Marshal(&taskCopy)
  		if err != nil {
  			return err
  		}
  		return bkt.Put(bucketKeyData, p)
  	})
  }
docs: // PutTask places the task into the database.