save diaries into local mongodb