private void selectMode() {
		System.out.println("Welcome to URLCollection Database system");
		System.out
				.println("Please input your mode of derby(number or name of mode)\n1 embedded\n2 network\\derbyclient");
		String choice = sc.next();
		if (choice.equals("1") || choice.equalsIgnoreCase("embedded")) {
			this.setFramework("embedded");
			this.setDriver("org.apache.derby.jdbc.EmbeddedDriver");
			this.setProtocol("jdbc:derby:");
			this.printLine();
			System.out.println("Mode Embedded derby database selected");
			System.out.println("Driver: org.apache.derby.jdbc.EmbeddedDriver");
			System.out.println("protocol: jdbc:derby: ");
			this.printLine();
		} else if (choice.equals("2") || choice.equalsIgnoreCase("network")
				|| choice.equalsIgnoreCase("derbyclient")) {
			this.setFramework("derbyclient");
			this.setDriver("org.apache.derby.jdbc.ClientDriver");
			this.setProtocol("jdbc:derby://localhost:1527/");
			this.printLine();
			System.out.println("Mode derbyclient derby database selected");
			System.out.println("Driver: org.apache.derby.jdbc.ClientDriver");
			System.out.println("protocol: jdbc:derby://localhost:1527/ ");
			this.printLine();
		} else {
			System.out.println("error mode input, please input again");
			this.printLine();
			selectMode();
		}

	}