MB-100: change query to n1ql

Change-Id: I15605222d607ada8e8f59881e7d180a265976ca6
Reviewed-on: http://review.couchbase.org/44112
Tested-by: Bin Cui <bin.cui@gmail.com>
Reviewed-by: Bin Cui <bin.cui@gmail.com>