Add db's backup method.

- save db
- backup db
- recover db

If recover from backup db failed, it will use factory db to recover.