braindb query change