Proper chat log persistence