[mr2733] Use prepared statements for chat log.