Shouldn't we put the 'database' name we're using (I believe ```test```) back in front of the collection names to get a real namespace? Also I think rather than messing around with list indices here you can just do
```python
for r in result:
    r['ns'] = get_friendly_coll_name(r['ns'][trim:])
```