def getStats(self):
        return self.db.getStats()
method to group the answers by the categories passed in
dataset/ETHPy150Open victorlin/loso/loso/service.py/SegumentService.getStats--crossover with--dataset/ETHPy150Open sahana/eden/modules/s3db/survey.py/S3AbstractAnalysis.groupData