add support for diaries
add migrations and test cases for diaries