Added logic to hide results if there is no query string.
Wrote SQL for actual search