add ssl to gravatar
Add teams functions to global stats
Remove duplicate check to teams