Improve messages logged for exceptions
Display exact PDO error on default homepage
Added missing keyword