add unique index to notes date
fix unique indexes to use user_id as well.