sqlite: dump data on stop