dataMgr:data: update M() method back to old version

New version for M() using SQL calculation rarely causes
incorrectness, so update it back.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>