public IndexDBAccessor(Path file, boolean use) {
        try {
            if (!use)
                createFile(file);

            final String connectionString = "jdbc:sqlite:" + file.toString();
            Class.forName(DRIVER_NAME);
            connection = DriverManager.getConnection(connectionString);

            if (!use)
                prepareDB();

            prepareStatements();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }