Updated access on getCatById function.