private void getDataFromDB() {
        Connection conn = null;
        ResultSet resSet;
        Statement stat = null;
        try {
            conn = DriverManager.getConnection(Utils.DB_URL);
            stat = conn.createStatement();
            resSet = stat.executeQuery("SELECT id, motherlang_word, foreignlang_word FROM word WHERE " +
                    "section_id = "+ SelectSection.getSelectedSectionID() +"");
            while (resSet.next()) {
                if (SelectSection.getSelectedDirection() == "motherLanguageToForeignLanguage") {
                    wordList.add(resSet.getString("motherlang_word"));
                    translationList.add(resSet.getString("foreignlang_word"));
                    wordIDList.add(resSet.getInt("id"));
                }
                else {
                    wordList.add(resSet.getString("foreignlang_word"));
                    translationList.add(resSet.getString("motherlang_word"));
                    wordIDList.add(resSet.getInt("id"));
                }
            }
        } catch (SQLException e) {
            e.printStackTrace();
        }
        finally {
            try {
                conn.close();
                stat.close();
            } catch (SQLException e) {
                e.printStackTrace();
            }
        }
    }