update the schedule table id to task_id