Can you use the 3.5 equivalent?

`FrontendModel::getContainer()->get('database')`