Work on insert_record mostly done.  started on refactor to provide errors in right places, and to return a hash back to the initiating process in all cases