angular dirty db