move some data tables into C