begin with data base using refactoring.