Update upgrade_ajax.php

Resolves my update prolems issue #452 and #447