How Intelligent Database Analytics Improves Performance and Scalability in Modern Retail Platforms