You will not need to restructure your db to make it match the names of the columns in the cart. You just need to know what column from the cart matches up to the corresponding column in your order details table. The closer the names are the more intuitive it will be to make the associations.