pub fn read_schema_version(db: &Database) -> Result<Option<u32>>
Read the schema version from the database.