Build a Programming Journal with Python & SQL - Retrieving results from a cursor