define op db in queries