Update index.php

added upgrade handling to the save handler

Will work for single record updates (e.g. Iron Sword checked, Iron Sword+ unchecked. Check Iron Sword+ and save)
Will not work for multiple record updates due to sequence of table updates. (e.g. with Iron Sword and Iron Sword+ both unchecked by default, check both items and save. Result: only Iron Sword+ remains checked.