removed updatebyquery plugin code as it doesnt work