show error message when db connection test failed
Tweak variable and styling based on #146.

Signed-off-by: crynobone <crynobone@gmail.com>