note saving and geting from db