Yield GeoJSON Feature Collection, properly pass SQL parameters in psycopg2