tmp
Reworked UpdateQuery active table counting