basic backend for main page and search page...I think. Didn't test.
Merge branch 'master' of github.com:sean-smith/Medicost
fixed the two functions