change hashdb library interface