private void getDataFromWordTable() {
        try {
            connection = DriverManager.getConnection(Utils.DB_URL);
            statement = connection.createStatement();
            resultSet = statement.executeQuery("SELECT id, motherlang_word, foreignlang_word FROM word WHERE section_id = '" + AddCard.getSelectedSectionId() +"'");
            while (resultSet.next()) {
                idList.add(resultSet.getInt("id"));
                motherLangWordList.add(resultSet.getString("motherlang_word"));
                translationList.add(resultSet.getString("foreignlang_word"));
            }
            connection.close();
            statement.close();
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }