multiple db writer threads