Prettify SQL queries