write entity to fongo