Update index.php

Noneed for update function at the index.php. It will be AJAX POSTEd to another file.