update tables is feature complete but needs debugging