add new function in plan.models: save(self, plan_id, **kwargs), save the given record into plan collection; add the content of the get_detail(self, pid); return the detail info by the given plan_id, if there is no such record, return a empty dict.