The ecology of bacterial genes and the survival of the new