use activerecord in hospital controller instead of api calls