[mr2724] Improvement chat log system.
[mr2725] Implement chat log to DB.