added an index on task_instance table for schedule_id