improve active_pricing sql
separate active_pricing_calculator
rewrite optimized active pricing update