Implement ancestors method in Category model with recursive query FTW.