Added Errormessage if a database not connected