Changes to revert
Revert "Changes to revert"

This reverts commit 3ecdc64a7a659779d00ed017c29962475eea1cb4.
Add messages database, set up private_pub