public function closeConnection($name='db_default') {
        foreach ($this->connections as $key => $connection) {
            if($connection['name'] == $name) {
                $this->connections[$key]['lynk'] = null; //closing the connection
                array_splice($this->connections, $key, 1);
                return true;
            }
        }
        return false;
    }