Tidy up

 con.commit()  --- this isn't needed... it's probably been left over from the example where we created a table and inserted records.
In this case you're just selecting data from the table.