Finish dump/upgrade script