I am having problems where I am told that the commands are out of sync with the con.commit() line in the following: (con is the mysql connection)
def obtain_list_