refactor of csv cube; batch_size now split to batch_size and sql_batch_size