feat(savepoint): Rewrite chapter transaction and save point (refs #5145)