Commit multiple ticket purchases in one transaction.

Previously, buying four tickets would result in four separate
transaction. This bundles them all in to one, which saves database time.