Could you clarify what this script does exactly please? Basically an outline of the logic (renaming tables, migrating node by node, etc). This is a pretty in depth operation, it needs to be documented.