Restore database from backup

    Add failure support to snapshot and restore
    Restore command initial commit
Merge branch 'upstream'