DB changes for hash and cagegory support