update MsgMeta and identify ForeignKey name