History changes for query and book order query