protected function getDSN()
    {
        
        $params = $this->getParams();
        $driver = str_replace('pdo_', '', $params['driver']);
        $dbName = $params['dbname'];
        $dbUrl = $params['host'];
        $dbPort = isset($params['port']) ? ';port='.$params['port'] : '';
        
        return $driver . ':dbname=' . $dbName . ';host=' . $dbUrl . $dbPort;
        
    }