Mea culpa! I misread your intent. Let me try again.
The data you are collecting from your database queries, can you concatenate this data in a certain predicatable format? If so, you can use concatenation to do this.
If you are reusing the data multiple times throughout your email, you then need to use an array. Then, build your mail body using the data from the array.
I hope this is a better answer for you.