Update main.cpp

shift recursive invocation of insert_postprocess() to caller