updating plan type tables