Store dates as dates in db, rather than as ints. This should make it easier to implement user-customisable date formatting. Default date format changed to yy-mm-dd