Use dependency injection.

The database is a dependency for the CacheBuilder class. Inject it
trough constructor injection, and not with the static BackendModel::get
method.