Added Data access Layer

Added data access layer and added appConfig