Fix failure to load the schema on read-only DB.