Removed multiple UPDATE statement calls and merged it into one