edited article and category

Added scopes and relationships to models