Tunning db writer