fix db events stopping after batch size events