add helper method to update a workflow
add helper method to update a workflow

On submission the workflow object needs to persisted if the workflow
hasn't been saved previously.

	modified:   db.py

LyonsLab/Yerba,LyonsLab/Yerba