Implemented the DB backup machanism