Refatorado DatabaseConfiguration