masterdb install script