update table in place