How Can I show a custom view instead of the generic error attached in cases of the database going down unexpectedly?
You should set $db_debug = FALSE; in your config database settings on your production server - you should NEVER show a raw database error message to your users, as it is a massive security risk
$db_debug = FALSE;