changed query and resulting datatypes
added avg option to query
in process -- updating single_team page queries
updated queries and sidebar