changed list and note models to include foreign key