public function query($query)
    {
        if ($this->isConnected()) {
            try {
                $statement = $this->pdo->query($query);
                return new Statement($statement);
            } catch (PDOException $e) {
                throw new \Exception($e->getMessage());
                return false;
            }
        } else {
            return false;
        }
    }