Researchers say bacteria can be used clean polluted water and could even generate electricity doing it.