set primary key on notification history
writing notification time: #MSG-320 fixed