backup database

v1, fixes #11