added backup/restore database functionality (untested)
Merge pull request #243 from itpun/master

added backup/restore database functionality (untested)