Update getTestSamples.py

Added logging, AA scan, writes file & detection info to an sqlite3 DB, split into functions.

Includes a section to locate the original file name if it exists, but is currently commented out since it takes up too many resources and crashes the script.