Changed the sql statement to query only the mandatory fields
Refactorized the views to try to avoid conditionals with CodeComments.page as much as possible.