Fixed DB problem with DiaryEntry class