UPDATE creature_template SET flags_extra = flags_extra | 1 WHERE rank = 3;