Labels aggregation implemented for mongo