Yes sir! Thank you, sorry I missed this!

I decided to change it to install the files once in the main script and then run the include script multiple times for re-querying the database. Then at the end of the install I can clean up the files.