As much as possible, you should try to build your application code and business logic into your database rather than into the client ... the same order) including the product ordered, quantity, unit ...