bug #3997 Error handling in case MySQL extension is missing

We can not work with Response object before loading DBI as it uses it.
Fix URL redirector in case of fatal erorrs
Fixed display of link to documentation