Create saveDoctor and generic function for search like