improved updatedb.php (mainly clean-up)

* Added comments and description
* Changed some variable names
* removed if (true || ...) {