add query, queryFirst and queryFirstCell methods