Improving Application Scalability Through AI-Powered Database Workload Analysis