plans changed to diaries
join tables while adding user diaries