.
main script to be run fron the crontab.
function for generating a CSV from the SQLite database.
SSH to the machine if you want to run it there, no?
EOD