Run query against CBDB