fixing the relation for submissions
changing getResultTotalsArrayByCollectionId so it uses a join
changing the name of Submission::getResultTotalsArrayByCollectionId to Submission::getResultTotals