allergy gets from db refactored out record.js