fix empty return
add userid to cdbquery