Errors in schema.sql, loose commas & type was renamed event_type