added methods to Cart model, product & category tables