connectToDatabase removed