I\'m adapting a python script that I found as an answer to a similar question (56400556). The script works but currently the SQL results are being stored in a list, while I\'m l