added check to see if the file is in the database -- move on to next file if it is