Remove old dumpfile before new database dump
Dump column names as well
Rename thor file
Refactor thor file