Question: how to backup whatsapp messages from database?
Answer: Open WhatsApp and hit the menu button (three vertical dots on the top-right) > Settings > Chat Settings > Backup conversations. This file will be stored as "msgstore. db. ...  To restore conversations from a backup, uninstall WhatsApp and find the correct backup file from the WhatsApp folder. ...  Now reinstall WhatsApp.