Modified code that retreives all teams from dbase.