cleanup
first version of quering by raw prepared sql
+ tests for raw query