fix message status when loading from db
remove constants