creating a document database