Impleming a new way to create queries