- integrated the type= feature in argparse in all three scripts - removed some redundant code from the third file
- moved some common functions into files - other smaller changes
The timestamps in files should be the day that the exports are done. For the view data, the query date needs to be the day before but this shouldn't be the timestamp we use in files, etc.