I am not sure it's a good solution because this message is also shown if there are some database problems on production site, and "welcome to setup" message is shown to common user from the internet.
Better solution will be some neutral message like "This site is experiencing problems with database, more detailed information can be found in web site log" and no stack trace.