Rename ns parameter to collection for clarity

This parameter is the collection name, not the full namespace (i.e. db.collection).