query: fix and add basic where and raw where methods
tests: add sql composer where basic and raw sql test