Revert "fix batching db issue"

This reverts commit 5e030a9a4dbdcc2d11f1a7ab9e13eec2902285eb.