Updated api/events.php to reflect the schema changes after discussing it with Matt