Adds QueryCollection object along with method definitions