incapsulated and refactored DataProvider configuration