Create documents from cache database