finish backup and restore database