Carrying out aggregations in Play(Scala) 2.6.x