Fixing training history because the database scheme have been changed