Save with the same connection

Instead of 2 different connections, one
for saving the flow detail and then one
for saving the task detail just use one
connection for both.

Change-Id: I68315a6c201325bb154f5ab5fc69a3824055c912
Merge "Save with the same connection"