Extracts update and insert tasks from persist task