added a query to server