Writing a database to file

write_db can be used to write serialised objects to a database instance. In the below example, we use it to write the output of a composed process to disk.

Note that out_dstore and result are the same instance.