Added debug to creation of table and copying of data