more db work

need to add foreig keys