replace getDB() in the models with getContainer()->get('database')