More PDO stuff
Merge of functions.php and stats.php
Merge of register.php by way of fox laziness