When entry is added, returns id of document