sql writer db types tuning