Prevent creating multiple index records

Save AOD_Index with a known id to ease retrieving later.
This bypasses an issue where Security Suite would prevent retrieving the index causing another one to be created (which also couldn't be read) and an issue where, if there was a large number of indexes (as caused by the previous bug) then they would all be read into memory).