Replace getDB() in the models/installer with getContainer()->get('database')