changed dates to a string that will be easier to query
changed script