add message in DB if doesn't exist, else update