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