Refactored opal query funcs to QueryExecutor

Signed-off-by: Tom Wright <tom@inflatablecookie.com>