That's the legacy behavior, which I assumed we wanted to keep. `$db` is optional, and it was only ever generated by the driver if you passed a third argument to `MongoDBRef::create()`.