Testing databaseconnection