This should dump the sql to a file