Added BMInterface infrastructure to save and load flags from database