SQLExecutor() {
        readData();
        setPassword();

        List<String> list = getFileList();

        int i;
        for (i = 0; i < list.size(); i++) {
            System.out.println(list.get(i));
            executeScript(directory + File.separator + list.get(i));
        }

        if (i > 0) {
            setLastScript(list.get(list.size() - 1));
        }

        System.out.println("Wykonano " + i + " skryptow SQL...");

        saveData();
    }