Added basic DBconnection checkings.