patched some bugs and Hierarchy-DB-Implementation started