changes to team score queries