cleaned up events table