Add index on taskjobstates table