bug fix

error info shown in the page when database connect failed