>you need to catalog all the phages you find in a database and search for one that can target the specific bacteria the patient has been infected with.
Most of the time the doctor doesn't know the exact pathogen you are infected with. He'll suspect a bacterian infection of some kind and prescribe a wide range antibiotic.
Doing what you suggest will require changing the way we do medicine. Which might not be a bad thing but requires some determination.