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

Db query fixs