Added changelog and fixed a small bug with query history.