IndxSync skeleton query code