I need a php script that I can run with cron as well that will:
1. Export orders from Magento.
2. Put the orders in a separate MySQL database.
3. It needs to export order info including product info and customer shipping, customer billing.
4. It should create an entry for each item, so for example, if someone orders two items, it would create two entries in the new database.