Added functions for dumping the DB.
Added mod_mam:restore_dump_file/3 (working version).