In addition, we are trying SQLite on database.
SQLite is very stable, including builds, and our other project has been running binary data stably for over 5 years and has never been corrupted.
db.h
https://github.com/FromHDDtoSSD/SorachanCoin-qt/blob/master/src/db.h