split data into seperate table