main
Change: 1. Initialization of source_cp, source_ds, source_ds_desc, source_dest is placed at the beginning of the method (before the parsing blocks). 2. Duplication is removed: source_dest is now defined once (with the default value "postgres"). 3. When passing to the generator, source_dest is used (it is always defined).
Added monitoring script