Adds indexes to some table definitions with links to other tables (so they are searched that way)