Added Foriegn keys and primary keys to sql file