skip update if onQuery result is blank