Write type of query object or string to query-log
Fix ORDER BY queries in SimpleQuery and add more tests