added functions to postgis_restore.pl.in