fix dognoteattachment foreign key. add attachments to note list