Maintain indexes in Firebase