Changed Register and Settings to use Model for database stuff