Hierarchical And Semantic Data Management And Querying For Patient Records And Personal Photos