fix fetching name of team from db