database infra notification refactory