added model method
Merge branch 'master' of https://github.com/JackMarx/RoboJS into profile-challenges-logic
Merge branch 'master' of https://github.com/JackMarx/RoboJS into profile-challenges-logic
moved database logic to model
Merge pull request #39 from JackMarx/profile-challenges-logic

Moved profile challenges logic to model