save_filecontent revised

Fixed:
* Rare but potential db file damage when tmp file cannot be put out.
* Now shows updated message.
* Now deletes db and text file if valid lines in the file became zero
and inform such result.