Embeded document database