Implement ticket group system

When creating n tickets, instead of returning an array of n tickets (as a result n database transactions), return an array that describes the n tickets, with only 1 database transaction.