Added error message when database goes away