fix addPatient query