Update index.php

Now performs database updates with a single page