save sql history to file