To get a document you can give it either the id or collection and key
This change is needed for multithreading