Parametrizes script to transfer collections to postgis.
Minor improvements.