Database storage of messages (2)