Reassign the ids of exercise for database