create tables when adding to cart