SQL for dimension search should be working. Actual hooked functions isn't. will stop here for now.