Added queryID to C++ side. Insert operations now return IDs.