Fixed last query log from growing too big.