modified schema for events table