added fkeys to create table
changed andrewids