The bacteria are highly effective against a common plant pest and a pathogen that infects humans