fixed sql to make it more forceful in updating/