Add really basic error handling
Catch PDOExceptions and treat as though the db server is offline (it probably is).