fn create_schema(db: &Database) -> Result<(), Error>
Ensures all tables are present. Opens a write transaction and calls open_table on DIRECTORY_TABLE, which will create it if not present.