added a copycolumns method that copies columns from one table to another