Added queryType parameter and helper methods (scalar, query, queryOne...)