storing all messages in DB, error handling update