added sql to create events table