refactor heros.db to delete empty engarces