Correlation-Aware Optimizations for Analytic Databases