1 query instead of 2 when getting team names