added batch interval to jdbc; fixed issue with jdbc test cases