Code:
Update `item_template` set `type` = ID where `type` = ID;
Replace ID with the value to make an item BoE & change type to the correct column if its not .
Something like that, i dont know the values to make it BoE. Go hunt