Building out querybuilder