Switched query counter to AtomicInteger, added log rotation, added check to ignore updates on the "system" table