foreign keys working, need to do the rest