The script is getting pretty close to where we need it to be. The generation of the data needs to be abstracted to a function so that we can query multiples tables without too much trouble.