fixed unused functions to be called and clean the code
added a model for results from database for handling data much simpler.
Merge branch 'Just-Framework' of github.com:confact/Fathr into Just-Framework