Fixed bug in calendar event insertion code, now only inserting new events.