Added category class and its db methods