Add on_commit/after_commit event funcs.