odb functions. moved hash and hashfile