update basetask and flow paln MongoDB accessing method