SQL Formatter written by Jeremy Dorn