fixing uppercase team names, and a getTeam query