jdbc read write chunking