public static void main(String[] args) throws IOException {
        // TODO code application logic here
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int choice = 0;
        database = new PwdDB();

        Banner();
        System.out.print("\nDATABASE FILENAME [even new one]: ");
        String dbname = br.readLine();
        database.OpenDB(dbname);
        System.out.println("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");

        while (true) {
            //hello
            Banner();
            System.out.println("\n\n\n\n\n\n\n\n");

            System.out.println("1. INITIALIZE DATABASE");
            System.out.println("2. WORK ON PASSWORD DATABASE");
            System.out.println("3. CLEAR CLIPBOARD AND EXIT");
            System.out.println("4. EXIT");
            System.out.print(": ");
            try {
                choice = Integer.parseInt(br.readLine());
            } catch (NumberFormatException nfe) {
                System.err.println("Invalid Format!");
            }

            if (choice == 1) {
                database.CreateDB();
                System.out.println("DATABASE INITIALIZED");
                System.out.print("PRESS ANY KEY TO CONTINUE ");
                br.readLine();
            } else if (choice == 2) {
                DbWorking(dbname);
            } else if (choice == 3) {
                StringSelection stringSelection = new StringSelection("e il naufragar m'è dolce in questo mare");
                Clipboard clpbrd = Toolkit.getDefaultToolkit().getSystemClipboard();
                clpbrd.setContents(stringSelection, null);
                System.out.println("e il naufragar m'è dolce in questo mare");
                database.CloseDB();
                System.exit(0);
            } else {
                database.CloseDB();
                System.exit(0);
            }

        }

        //PwdItem item = new PwdItem("libero.it", "gio", "q", "lol");
        //System.out.println(item.getPasswordHint() + "\n");
    }