Building the Architecture of A Statistics-Based Query Optimization Solution for Heterogeneous Mediators