Fix refmdb
Fix refmdb

This merges all the changes that were made
to the refmdb on various branches.

yamcs/yamcs,bitblit11/yamcs,yamcs/yamcs,m-sc/yamcs,fqqb/yamcs,bitblit11/yamcs,fqqb/yamcs,dhosa/yamcs,fqqb/yamcs,bitblit11/yamcs,yamcs/yamcs,fqqb/yamcs,m-sc/yamcs,m-sc/yamcs,m-sc/yamcs,dhosa/yamcs,yamcs/yamcs,yamcs/yamcs,dhosa/yamcs,dhosa/yamcs,bitblit11/yamcs,fqqb/yamcs,bitblit11/yamcs,fqqb/yamcs,yamcs/yamcs,m-sc/yamcs,dhosa/yamcs,m-sc/yamcs