Change mySQL connect to PDO
Re-format code and add more verbose comments
Re-format templates
Add title tag to head template