Algorithms for Frequent Itemset Mining and Database Sanitization