Fixing bug due updating order on msdata database