Enhancing E-Commerce Scalability Through AI-Driven Database Optimization