convert objectid automatically in documents