modified the query.py and client.py, modified the use_query() function on test.py