created HashServiceConfigDAO and did some refactoring