added static createPatient method that returns the created patient and used it to replace the manual sql creation the controler