add update db after map reduce and fix generate query statement for segment
add update db after map reduce and fix generate query statement for segment

meotrics/meotrics,meotrics/meotrics,meotrics/meotrics,meotrics/meotrics