Fixed the sql to incorporate dates, added tags.csv, added json