Fixed erratic, confusing sometimes-fails of "with connection.cursor() ..."