add index on deprecated task id