private void getWordsAmountForSections () {
        try {
            connection = DriverManager.getConnection(Utils.DB_URL);
            statement = connection.createStatement();
            for (Integer id : sectionIdList) {
                resultSet = statement.executeQuery("SELECT COUNT(*) AS count FROM word WHERE section_id = " + id +"");
                sectionWordsAmount.add(resultSet.getInt("count"));
            }
            connection.close();
            statement.close();
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }