For basket exports you can use data from following tables: biblio, biblioitems, aqorders, aqbudgets and aqbasket. The delivery and billing codes are stored in aqbasket but the addresses are in the branches table.