A better understanding of battles between bacteria and viruses could inspire new medicines