DateQuery fixed

Small bug fix, but it would lead to be DateQuery useless
Merge remote-tracking branch 'origin/master' into DB