update msg_id to long type