Re-order so create statements are together and integrety functions are
together.