DEV: add query() and execute() functions