created entry and setup the association with diary