Fix the upgrade and the insert of data at least in MySQL