Execute arbitrary SQL query on Export