moved Query interpretator to it own class