Add ability to use a sql that return more than one tuple

fix #74 
and
Metatile buffer should be used in intersects
fir #84