How Data Engineering and Generative AI Can Help Retailers Improve Profit Margins and Customer Loyalty