Missing close-paren
And some whitespace
Make improvements to the Team class
Update the __set method to waste less lines of code (fixing the issue with matches_* properties not updating)
Also make it handle aliases and update them when the team's name changes
Add the $alias property
Tell MySQLi to consider that the data is encoded in UTF-8
$db is an instance of the Database class, not Mysqli - fix the PHPDoc
Also some whitespace fixes