improved addPatient queries