Wierd database update bug, not seen before, fixed