Fixes if statement logic
now sends response
Merge pull request #58 from Kdr18702/DBQueryFixs

Db query fixs
Merge pull request #59 from chiaS/master

add getResults to factory
render result on result page