Check directory or existence of SQLITE files

This scans a directory to see if SQLITE files exist.  I need to enhance
this as is I scan a directory with odd character file names then it
seems to screw it up and say no files exist even if there are some, but
will work on most places