Move thoth query methods to Utils class

...d public so they can be used