Reformatted hash db code