moving data from temp tale to main table