*8710* introduce WorkflowStageDAO, refactor for index op