fix format for several SQL code blocks