I am looking for the code (SQL query) which sends the order data to the database (items, comments, delivery info, etc.). Where would I find this?

Thanks,
BParker