two-stage database backup