WIP #757 Buddy System Enhancements

Fixes upgrade file for other DB engines.