More crude hacks to make SQL formatting look nice.