Refactor de DB