query command for lbdb