Implemented JDBC batching functionality