fixed search page and sql
Merge pull request #15 from nycdidar/late-night-change

fixed search page and sql