refactor notice

- store on database flag