Make the original recursive file list is sorted by modified date.  Don't use sets when diffing the DB with the list.  That makes last modified files entered last into DB