Access to the database.
@override Database get db { var database = _db; if (database == null) { throw Exception('Database is not available in this session.'); } return database; }