Update web/concrete/core/libraries/loader.php

When the database is unreachable, c5 gives an ugly php error.

Changed the static function db() to load view and localization libraries to so that a friendly error is given instead.