0031290: implement method that gets query history from server