update test
dump sqlite index
update document
refactor write_files method
add clean method