db: DeclarativeBase fixed.