beautify sql queries