formatting of sql statements