queries and history tables changed