Store msgid in sent table