Put aiVersion into db indexes