public void loadSuggestions() {
        this.suggestions.clear();
        SuggestionModel suggestionModel = new SuggestionModel();
        Iterable<Entry> suggestionQuery = suggestionModel.query("{id:{$gte: 0}}");

        DefaultTableModel model = (DefaultTableModel) suggestionTable.getModel();
        model.setRowCount(0);

        UserModel userModel = new UserModel();
        for (Entry entry : suggestionQuery){
            this.suggestions.add((Suggestion) entry);
            Suggestion suggestion = (Suggestion) entry;
            Iterable<Entry> userQuery = userModel.query("{id:"+suggestion.getAuthor()+"}");
            if(userQuery.iterator().hasNext()){
                User author = (User) userQuery.iterator().next();
                String name = author.getFirstName() + " " + author.getLastName();
                model.addRow(new String[]{suggestion.getSubject(), name, suggestion.getCreateDate().toString() , String.valueOf(suggestion.getComments().size())});
            } else {
                System.out.println("author not found, row not added");
            }
        }
    }