Notification function called whenever one database is about to be inserted into another.
This function is called before the operation.
If xfm is specified, pFromDb was inserted into pToDb as entities.