modified the structure of the events table