If you execute this stuff manually, make sure you do it in this order users contact class students Tables have foriegn key constraints which get broken if the previous table does not exist.