Added a check to ensure the source exists before database operations, preventing the destination from being dropped if the source is missing.