fixes auto_increment during reinstall