added database logic and subscriber form logic