Refactor mem3_rpc:add_checkpoint/2