Clean up some SQL formatting