preliminary work for "for" statement needed to support inserting multiple rows with one request