Create teamId field in player table

Added command line option 'teams' to fetch.pl which performs a lookup over all
matches played by each player, and selects the team with the most occurrences.

This method has disadvantages, which are explained in inline comments.