Implemented a MongoDB API for term and occurrence storage.