lib/mongodb: provide `db.getCollection()` and `db.ObjectId`