router functions to retrieve doctors and patients from db

retrieve both doctors and patients from db using their names or ids