Create nested JSON for the purchases.

Album and Customer are nested JSON objects in each purchase.
The purchases gets track name and track composer from the Tracks table.