search.php milestone

properly fetches results from the database
still needs pagination, functional apply button, and form information
retaining and whatever else comes to mind