Renamed DocScan.xml to Credentials.xml.  Fixed a parsing problem with XML by unescaping the strings.  Fixed the SQL query function to where in theory it works now using tries and excepts.