nicer formatting of SQL