Support instant return in textArea.
Implement database repair tool. There are still some TODOs, but it does its job.