Improved handling of database connection problem.
Show an error screen instead of rasising an internal server error.