database backup and restore fixed