Db backup

Fixes #543