fix bug where insert did not return _id as it should