Fix update row

1. This update db and also `$application`

```php
$application = $software->application[1];
$application["title"] = "Adminer2";
$application->update();
echo $application["title"] // return Adminer2
```

2. This update only db but **not** `$application`

```php
$application = $software->application[1];
$data = array("title" => "Adminer2");
$application->update($data);
echo $application["title"] // return Adminer 
```

Second is not consistent and unexpected behavior. This pull request fix second way. I added also test for it.