save message to db when user sent message (action-state)