[REFACTOR] Applying database exception.
[MODIF] Using entry-record pair class.
[MODIF] Fully implement WriterThread onComplete listener.
[MODIF] Restore interrupted status of threads