updated mysql measures to use latest schema av_measure av_measure_logic