added an index on task_instance table for schedule_id in updatedb script