Added an extra check for DB-connectivity. If not, display a friendlier message. Also, don't disclose the DB-username.