Hybrid relational/document database