Change msg id with constant define
Save changed time to db
Move message id to const