cleaned up Resource model; added parent category to Category