Prototype of CDTDatastoreFromQuery