simplify hashdb library interface