Query Optimization: Enhancing Database Performance