fix db/update.php script.