Update user's teams

When a selection is made on the teams page, update the user's teams in
the database (add or remove).