Changing the daily query to use the _get_after_query() method to add yesterday's date to the query.  This makes sure only the latest daily query is returned.  Also, I'm removing a bunch of comments and print statements and adding the date field to the hourly csv file.