local mt { __newindex = function (t,k,v) print("*update of element " .. tostring(k) .. " to " .. tostring(v)) t[index][k] = v -- update original table dbExec(handler,"UPDATE GTO_gangs set " .. tostring(k) .. "=? where id =?",v, end }