add a query device