Added method to add documents to the database.

Looks good.The documents are indexed by the uuid followed by their
actual contents.Must test with a larger dataset.