ToDo Detail DB integration phase 1

creating index for each task, so then on the later phase the detail can
be saved in accordance to the task index.