Added php which will create the user's query

Created the php file which will be called from the javascript function
which is triggered when the user searches for a tree(s).  This file sets
up the main query which will be used on the database.