add query service