copyCdmTo function

Copy a cdm object from one database to another