Added group by date script and test data