Added collection and class stats queries