Continue Outside Loop Python Dict Update Value In Table Sql