Apply INSERTs in Event::AddFrames in batches to fix issue #222

I've tested this on my own installation successfully.