Assume connection.cursor() gives you a cursor object