periodic daily layer importer script refactor

Script now takes all values as command line arguments and performs
an import.

Not sure why it did not perform imports previously (as in the code
deliberately failed).

It guesses the columns. It should probably use the same fields that
put in when the first "one-off" file was uploaded.