worked on events table implementation