Migrated all global evol queries to new metaquery schema with SQL group.
The code is a lot shorter and more understable and maintainable