Fixed Database team name bug

Fixed a bug where the team name would not be successfully updated.