improved createNewIndex function, if pk index differs, drop pk and add pk avoiding sql errors
removed alter at lower than 320, upgrade-funcs.php