Adding database backup code