add task cleaning operation
merge
fix create record
improve performance by indexing
update task index when needed