Returns the CommonDatabase.
null here means the database is closed.
null
CommonDatabase? get db => _provider.db;