public function connect(array $params) : bool
    {
        $params = $this->addDefaultValue($params);
        $config = $this->getDns($params);

        try {
            $this->pdo = new \PDO($config, $params['username'], $params['password'], $params['options']);
            $this->pdo->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);

            return true;
        } catch (\PDOException $e) {
            echo 'Unable to connect to database, an error occured:' . $e->getMessage();
        }

        return false;
    }