public List<Entry> getEntryList() {
        List<Entry> list = new LinkedList<>();
        try {
            Statement statement = connection.createStatement();
            ResultSet resultSet = statement.executeQuery("SELECT * FROM comments ORDER BY time");        
            
            if (resultSet == null) {
                return list;
            }            
            while (resultSet.next()) {
                Entry entry = new Entry();
                entry.setTime(resultSet.getTimestamp("time").toString());
                entry.setText(resultSet.getString("comment"));
                list.add(entry);
            }
            return list;
        }
        catch (SQLException ex) {
            ex.printStackTrace();
            return list;
        }
    }