Fix db bulk call