adding the belongs_to relationship to pages for the subject class and making its db attributes accessible