Added NOT syntax to WHERE queries

Fixes item:32