This won't help you recover the lost work, but will save it for the
If your tables are big, then add a line to copy the first table
to a backup file. This keeps you alive from unexpected things like
power failures - I've seen people acciedentally turn of UPSes -
resets, or phases of the moon.