save document to db