Object oriented and better null result control

- Queries are now objects. It prepares for a future future SQL data
format implementation.
- Queries are now processed by null result. The list of queries with
null result is processed several times. It controls for the regular
erroneous null results.