multithread db update with file hashing