Converted query_test to use check.v1, added a statemetn parser who resolves the tables and related tables to create automatic joins for where statements, not all the tests pass ok
dissected generateSQL and generateCount into generateWhere/order/joins function extracted. relational mapping now complete, format and resolve relations functio now accepts multiple stemenet inputs (used for where and order in select). All test pass now.