[sql] use the default sqlite datetime format so collating works