functions for retrieving page data, querying the db.
update SQLQuery function, add BruteForceTree()