added backup/restore database functionality (untested)