A socket chat with optional archiving to MySQL