[WIP] Add indexes to thredded tables