Fixed the SQL layout.