Now works for all files and gives no MySQL error messages