Updating entire tables using update query