Implementing database backup