got the database to add a team
added function so that team list updates