Refactorized descargarBBDD