Chat system with PDO