Discussion with sir Nate and adjusting the query length and optimizing the generation of report through hanging data to avoid the excessive connection to the database resulting to poor performance when generating a report. 