Return MySQL query results as GeoJSON or TopoJSON