Converted insert.php to PDO.  Seperated queries into seperate files.  Seperate PDOParameter check into seperate file