Add batch processing for mysql access.