Implemented new feature - query pools, allowing to divide queries into pools, and control their execution depending on the pool they are in.