Fix in indexer conversion code for mainDB