add after_commit hook