Refactoring and last implementation of configurationDAO