Improved mongo support in regards to detail collections, and detail querying