`c->ns` was causing the `db.collection` name to end up in the `$ref` field of the DBRef. This fixes it so only the collection name is used.

Also, the DB/collection methods should not be setting `$db`, so we pass NULL as the third argument.