including opentree treestore queries into web2py