public function query($sqlCommand)
    {
        $result = $this->connection->query($sqlCommand);
        if ($this->getError() != null ) {
            throw new MWebfilesFrameworkException("Error orrured on executing sql: " . $this->getError() .", SQL: " . $sqlCommand);
        }

        return $result;
    }