Organize sql/old into respective TDB versions