One last change

A message box added to inform if DB connection fails.