Change DATE memory representation to be days

DATE is now stored as a 32-bit number of days since 1970-01-01
Maybe add a `toDate()` method on `SqlDate`