Done, db stuff below -- foreign keys look right?