Added dirty flag to reduce the amount of DB access when updating MinMax
Re-enabled WOD updating of MinMax