a document database implement