Use duck-typing because we can't rely on opt.db being instanceof mongodb.Db, might be e.g a different version of mongodb-native