Created query builder class