Adding query to get team info for a profile