Re-order MySQL table creations

Or it fails, at least on my version of MySQL (5.5.29), through
PhpMyAdmin