Minor function and changed TeamEvent model to match new schema