migrate data from old tables to new