to query data, you must be connected to the server