A knowledge-driven hierarchical nosql database