return updated entry from mongo
complete edit angular edit function