Script with data structures ready to be finished

The SQL statement are completed, and information into data structures.
Next step is to print out the file