Untested mongo/uuid code
Mongo query fixes