revised materialized view for search to include earliest parent, moved to separate file to allow for running separately; revised search.php to used the new materialized view