Now I have it check whether a file is in the db before trying to import it.