Updated database reader and writer. Reader now reads without issues.
-  Need evidences to retain the consensus id from db though to re-build parent.