Make pathing and routes work
Add create and update functions for preferences
Fix diabetic model
Fix preference typo