issue #20254: copied in Eli's script
issue #20254: tweaked script to assume pre-existing repo and to support global db rearchitecture
Merge pull request #405 from shackbarth/20254-globalfold

issue #20254: fold in global database to instance databases