Part B - Completion

Changed query results and removed sub queries.

Added filtering.
Part B - Completion

Changed result query to simplified version and removed sub queries.

Added filtering capability that receives filter input from home.php.