public function addDatabase(string $name, MongoDatabase $database): MongoManager
    {
        if (isset($this->databases[$name])) {
            throw new ODMException("Database '{$name}' already exists");
        }

        $this->databases[$name] = $database;

        return $this;
    }