Backing out SQL, making it a gist instead.