changed date to long
added cached files to sqlite and helpers for managing processed files
Scan and decode tasks now check db for processed files and update db as needed