Migrate scores.php to PDO & add error check
Remove pointless conversions in chat.php
Improve chat.php's ordering fidelity
Ensure that messages entered into the database are html-escaped

 - It's safer to do it this way, and get errors for double-encoding,
   than potentially leave a message unfiltered.
Fix update ordering to ensure valid chronology
Remove debugging alert
Refactoring