1. Added spannQueryCounter while saving data