reduce code, new db layout for race exept flags