add git working dirs
make batch_size configurable
generate sql scripts