Assorted fixes to new hash database capabilities