I am trying to create a script that runs a MySQL query and use the results to match filenames found in a directory scan and change the results of "$directory" into all