sorted out the teams/regions primary keys