Add create_table and drop_table commands and generalize copy command code