Update kvs.erl

adding support "copy type" for tables