Adding some MySQL data quality functions