Merge pull request #400 from shackbarth/20254-globalfold

issue #20254: fold in global database to instance databases
Merge remote-tracking branch 'XTUPLE/20254-global' into 20254-global