update old query service