improved dbWriter stability