Updated the sqlite table definition and fetch sql to get the scan date (but can be refined further, to use n days/minutes/hours/seconds ago instead)