Reimplemented string-time for sqlite simplicity.