“Optimizing Performance: Unveiling the Hidden Workings of SQL Databases