update query_statistics method match in Rewrite module.