made querybuilder accessable from resource