remove curriculum table and add foreign keys to database