Refactor: split guts of insertEvent out so we can use them elsewhere.  Add commit on insert (shouldn't matter but WTF).