Fix sqlite timestamps
Created by: mjg17
Unix timestamps were being erroneously converted in the SQLite driver.
(The assumed default for integers passed to SQLite's DATETIME() function turns out to be Julian day number, who knew???)
If this looks okay, I'll backport to 78 and 77 (which we're still using).
Many thanks!