Quick helper for streaming query results from postgres