save DB added to dd_deinit function