Adding getTeam to database, cleaning some comments

Todo still make sure there's no more warnings.