mongodb functions also convert ids to_external to make api more consistent when called internally with call_rpc